package com.kll.carolinehmibiz.presentation

import android.content.Context
import com.kll.carolinehmibiz.AccountManager
import com.kll.carolinehmibiz.net.bean.LoginResponse


/**
 * ====================================================
 * Created by Ziliang Cai on 2021/12/7 17:23
 * <a href="mailto:752577456@qq.com">Contact me</a>
 * ====================================================
 */
open class BasePresenter(context: Context) {

    var mContext = context.applicationContext

    fun getUserInfo(): LoginResponse.UserInfo? {
        return AccountManager.getInstancce().getLoginUserInfo()
    }

    fun getUserSig(): String? {
        return AccountManager.getInstancce().getUserSig()
    }

    fun getAppId(): String? {
        return AccountManager.getInstancce().getSdkAppId()
    }

    open fun onViewAdded(){}

    open fun onDismiss(){}
}